<div class="sidebar">
    <!-- insert your sidebar items here -->
    <?php if($this->session->userdata('id_integrante')){  ?>
        <h3 style="font-size:14px;">
        	Bienvenido  
            <a href="<?php echo base_url();?>user/profile">  
                <?php echo $this->session->userdata('nombre').' '.$this->session->userdata('apellido')?>
            </a>
        </h3>
        <p>
        	<a href="<?php echo base_url(); ?>user/profile" style="font-size:12px;">Mi Perfil</a><br />
		   	<a href="<?php echo base_url(); ?>user/sign_out" style="font-size:12px;">Cerrar Sesion</a>
        </p>
    <?php }
	else{ ?>
    	<h3>Iniciar Sesi&oacute;n</h3>
        <form action="<?php echo base_url().'user/login' ?>" method="post" onsubmit="return login();">
            <h5>Direcci&oacute;n de correo electr&oacute;nico: <input type="text" name="email" id="email"></h5>
            <h5>Contrase&ntilde;a: <input type="password" name="password" id="password"></h5>
            <input type="submit" name="button" class="submit" value="Iniciar Sesi&oacute;n" />
        </form>
        <a href="<?php echo base_url(); ?>user/lostPassword">&iquest;Olvidaste tu contrase&ntilde;a?</a>
        <p><br /></p>
        <h3><a href="<?php echo base_url(); ?>user/signUp" style="color:inherit; text-decoration:inherit">Unete a BestBuddies Venezuela</a></h3>
	<?php } ?>
</div>